home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 896 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.8 KB  |  50 lines

  1. Path: news.ro.com!usenet
  2. From: howard@ro.com (Ren)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: *** Need Help with Error ***
  5. Date: 8 Jan 1996 06:58:26 GMT
  6. Organization: RSI
  7. Message-ID: <4cqfai$ipe@news.ro.com>
  8. References: <4cng8s$741@news.fsu.edu>
  9. NNTP-Posting-Host: ts1p14.ro.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=ISO-8859-1
  12. X-Newsreader: WinVN 0.99.6
  13.  
  14. In article <4cng8s$741@news.fsu.edu>, colvin@xi.cs.fsu.edu≈ spews forth
  15. >
  16. >
  17. >
  18. >  Hello. I'm having a linker error come up and I really have no clue
  19. > as to what it means. I used bgiobj.exe to convert all my .bgi and
  20. > .chr into .obj, and I'm trying to link them together with my driver
  21. > program, command-line style, but I keep getting this error:
  22. >   Error: Segment _TEXT exceeds 64 K
  23. > Any clues? What is _TEXT? Is that an arbitrary thing? Can I somehow
  24. > increase my whatever past 64 K to fix it?
  25. >Thanx. :)
  26. >---------
  27. >Joshua Colvin
  28. >colvin@cs.fsu.edu
  29.     
  30.     The files you create when you run bgiobj.exe are by default created in 
  31. the _TEXT segment. If you are using the small or compact memory model you 
  32. overload the _TEXT segment rather quickly because the code is stored there as 
  33. well. SO, your obj's are trying to use more than 64k. Now you could change the 
  34. memory model, but thats not the best way to do it. Escpecially if you use 
  35. quite a few fonts, ect since it will overload the _TEXT segment then too even 
  36. though larger memory models have larger _TEXT segments. 
  37.     To correct the problem, use the /F option when you run bgiobj.exe. The 
  38. /F option tells bgiobj.exe to use the segment name filename_TEXT (where 
  39. filename is the name of the file you are converting). This way the default 
  40. segment isn't overburdened by a bunch of linked in obj files. Also, don't use 
  41. the registerbgidriver function, you have to use the registerfarbgidriver..
  42.  
  43. Hope that helps, 
  44.  
  45. Greg
  46.  
  47.